package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.MemberCommodityPropertyDao;
import com.gtw.modules.entity.MemberCommodityPropertyEntity;
import com.gtw.modules.sys.service.SysMemberCommodityPropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service
public class SysMemberCommodityPropertyServiceImpl implements SysMemberCommodityPropertyService {
	@Autowired
	private MemberCommodityPropertyDao memberCommodityPropertyDao;
	
	@Override
	public MemberCommodityPropertyEntity queryObject(Integer id){
		return memberCommodityPropertyDao.queryObject(id);
	}
	
	@Override
	public List<MemberCommodityPropertyEntity> queryList(Map<String, Object> map){
		return memberCommodityPropertyDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return memberCommodityPropertyDao.queryTotal(map);
	}
	
	@Override
	public void save(MemberCommodityPropertyEntity memberCommodityProperty){
		memberCommodityPropertyDao.save(memberCommodityProperty);
	}
	
	@Override
	public void update(MemberCommodityPropertyEntity memberCommodityProperty){
		memberCommodityPropertyDao.update(memberCommodityProperty);
	}
	
	@Override
	public void delete(Integer id){
		memberCommodityPropertyDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		memberCommodityPropertyDao.deleteBatch(ids);
	}

	@Override
	public List<MemberCommodityPropertyEntity> foundByCommodityid(Integer commodityid) {
		return memberCommodityPropertyDao.foundByCommodityid(commodityid);
	}
	
}
